﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using iTeachSoft.CoreObjects;
using iTeachSoft.Code.Managers;
using iTeachSoft.Presentation.Code.Wrappers;

namespace iTeachSoft.Presentation.Controls
{
    /// <summary>
    /// Interaction logic for ControlFilmStrip.xaml
    /// </summary>
    public partial class ControlFilmStrip : UserControl
    {
        private int mSelectedSlideIndex = -1;
        public int SelectedSlideIndex
        {
            get { return mSelectedSlideIndex; }
            set
            {
                //TODO reflect selection
            }
        }

        public ControlFilmStrip()
        {
            InitializeComponent();
        }

        public void ReflectCurrentProject()
        {
            stackPanelContent.Children.Clear();

            foreach (Slide slide in RuntimeStorage.CurrentProject.Slides)
                this.stackPanelContent.Children.Add(new SlideThumbnail() { CoreSlide = slide });
        }
    }
}
